﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace ZXthex
{
    public class UGUI_Utility
    {
        public static void SetFullSize(RectTransform rectTransform)
        {
            rectTransform.localScale = Vector3.one;
            rectTransform.anchorMin = new Vector2(0, 0);
            rectTransform.anchorMax = new Vector2(1, 1);
            rectTransform.pivot = new Vector2(0, 1);
            rectTransform.anchoredPosition = Vector2.zero;
            rectTransform.sizeDelta = new Vector2();
        }
    }
}